package com.zsrt.java.day20161223.cg.practic;


import org.junit.Test;

public class Sum {
	@Test
	public void sum(){
		int begin = 10;
		int sum = 0;
		while(begin <= 50){
			sum = sum + begin;
			begin = begin + 10;
		}
		System.out.println(sum);
	}
	
}
